package com.lanou.bbs.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

// 回复
public class Reply {
    private int rid; // 回复的id
    private int uid; // 回复人的id
    private String replyContent; // 回复的内容
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date replyDate; // 回复的时间
    private int replyState; // 回复的状态
    private int tid; // 被回复的帖子id

    public int getRid() {
        return rid;
    }

    public Reply setRid(int rid) {
        this.rid = rid;
        return this;
    }

    public int getUid() {
        return uid;
    }

    public Reply setUid(int uid) {
        this.uid = uid;
        return this;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public Reply setReplyContent(String replyContent) {
        this.replyContent = replyContent;
        return this;
    }

    public Date getReplyDate() {
        return replyDate;
    }

    public Reply setReplyDate(Date replyDate) {
        this.replyDate = replyDate;
        return this;
    }

    public int getReplyState() {
        return replyState;
    }

    public Reply setReplyState(int replyState) {
        this.replyState = replyState;
        return this;
    }

    public int getTid() {
        return tid;
    }

    public Reply setTid(int tid) {
        this.tid = tid;
        return this;
    }
}
